//
//  ZYPurchase.h
//  ZYPurchase
//
//  Created by wu on 2020/8/6.
//  Copyright © 2020 wu. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "ZYPurchaseDelegate.h"
#import "ZYPurchaseSaleman.h"
#import "ZYPurchaseSaleman+IAP.h"
#import "ZYPurchaseTransactionModel.h"
#import "ZYPurchaseOrderModel.h"

NS_ASSUME_NONNULL_BEGIN

@interface ZYPurchase : NSObject

/// 唤醒支付系统
+ (void)wakeUp:(id <ZYPurchaseTransactionDelegate, ZYPurchaseOrderDelegate>)customer;
/// 清除代理
+ (void)clearCustomer;

/// 判断是否是订阅产品标识
+ (BOOL)isSubscribe:(nonnull NSString *)productIdentifier;


/// 添加或更新 log 记录
+ (void)resetLogRecorder;
/// 结束一次log记录
+ (BOOL)finishLogRecord;
/// 记录log
+ (void)logRecord:(id)content;

// 状态值转状态描述
+ (NSString *)transactionStatusDescription:(ZYPurchaseTransactionStatus)status;

@end

NS_ASSUME_NONNULL_END
